# -*- coding: UTF-8 -*-
# author:zhou date:2019/5/16
import pdb
from utils.api import API
from django.conf.urls import url
from report.forms import *
from report.views import *

baseUrl = "/api/report/"

testAPI = API(TestForm, method='GET', moduleUrl='test/', urlPrefix=baseUrl)
submitReportAPI = API(SubmitReportForm, method='POST', moduleUrl='submitreport/', urlPrefix=baseUrl)
getReportListAPI = API(GetReportListForm, method='POST', moduleUrl='getreportlist/', urlPrefix=baseUrl)
deleteRpAPI = API(DeleteRpForm, method='POST', moduleUrl='delete/', urlPrefix=baseUrl)
getReportContentAPI = API(GetReportContentForm, method='POST', moduleUrl='getcontent/', urlPrefix=baseUrl)
getCheckAPI = API(GetCheckListForm, method='POST', moduleUrl='getckeck/', urlPrefix=baseUrl)
submitCheckAPI = API(SubmitcheckForm, method='POST', moduleUrl='submitcheck/', urlPrefix=baseUrl)



urlpatterns = [
    url(testAPI.moduleUrl, test),
    url(submitReportAPI.moduleUrl, submitReport),
    url(submitCheckAPI.moduleUrl, submitCheck),
    url(getReportListAPI.moduleUrl, getReportList),
    url(deleteRpAPI.moduleUrl, deleteRP),
    url(getReportContentAPI.moduleUrl, getReportContent),
    url(getCheckAPI.moduleUrl, getCheckList),
]